package cn.tedu.spring.file;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TextDataBase {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext
                ("cn.tedu.spring.file");
        DataBase db = ctx.getBean(DataBase.class);
        System.out.println("db="+db);
    }

}
